package com.zwz.desgin.builder.test;

import com.zwz.desgin.builder.model.HouseDirector;
import com.zwz.desgin.builder.model.JianzhuangBuilder;
import com.zwz.desgin.builder.model.JingzhuangBuilder;
import com.zwz.desgin.builder.model.Student;

/**
 * @Description:
 * @Auther: zwz
 * @Date: 2021-03-04-1:49 下午
 */
public class App {
    public static void main(String[] args) {
        Student student = Student.builder().name("平头哥").num(1).age(18).email("平头哥@163.com").build();

        house();
    }
    public static void house(){
        HouseDirector houseDirector = new HouseDirector();
        // 简装
        JianzhuangBuilder jianzhuangBuilder = new JianzhuangBuilder();
        System.out.println("我要简装");
        System.out.println(houseDirector.builder(jianzhuangBuilder));

        // 精装
        JingzhuangBuilder jingzhuangBuilder = new JingzhuangBuilder();
        System.out.println("我要精装");
        System.out.println(houseDirector.builder(jingzhuangBuilder));

    }
}
